FROM lwieske/java-8
ENV TZ=Asia/Shanghai
ENV LANG=en_US.UTF-8
ENV JAVA_OPTS="\
-server \
-Xmx512m \
-Xms512m \
-Xmn256m \
"
RUN mkdir -p /logs/gateway
WORKDIR /logs/gateway
EXPOSE 9523
ADD ./target/yf-gateway.jar ./yf-gateway.jar
ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar ./yf-gateway.jar
